const crypto = require('crypto');

let sha = crypto.createHash('sha256');
console.log(sha.update('1234567').digest('hex'));